package com.itcam.lease.web.app.service;

import com.itcam.lease.model.entity.LeaseAgreement;
import com.itcam.lease.model.entity.PaymentType;
import com.itcam.lease.web.app.vo.agreement.AgreementDetailVo;
import com.itcam.lease.web.app.vo.agreement.AgreementItemVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface LeaseAgreementService extends IService<LeaseAgreement> {


    /**
     * 获取个人租约基本信息列表
     * @param phone
     * @return
     */
    List<AgreementItemVo> listItemByPhone(String phone);

    /**
     * 根据id获取租约详细信息
     * @param id
     * @return
     */
    AgreementDetailVo getDetailById(Long id);

    /**
     * 根据房间id获取可选支付方式列表
     * @param id
     * @return
     */
    List<PaymentType> listByRoomId(Long id);
}
